<?php
require_once dirname(__FILE__).'/include.php';
Master::loadCoreClass("AdminControl");
$Admin = new AdminControl();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=Config::$siteName ?></title>    
<?php
require_once dirname(__FILE__).'/heard.php';
?> 
</head>
<body>
<?php
$Admin = new AdminControl();
if (Get::getByKey('action')=='save')
{	
	$Admin ->editadmins();
	Header("Location:listadmins.php");
}
$model = $Admin->modleadmins(Get::getByKey('id'));
?>
<div id="main-content">		
				<div class="content-box">
				<div class="content-box-header">					
					<h3>当前位置：<?=Config::$siteName ?>管理系统 &gt; 管理员</h3>					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">修改管理员</a></li>
					</ul>					
					<div class="clear"></div>					
				</div>
				<div class="content-box-content">					
					<div class="tab-content default-tab" id="tab1"> 
						<form action="?action=save" method="post" name="admins" id = "admins">
              <input class="text-input small-input" type="hiden" id="id" name="id" value="<?=$model->id?>" />

							<fieldset>		
								<p>	
                   <label></label>
<input class="text-input small-input" type="" id="username" name="username" value="<?=$model->username?>" />
<label></label>
<input class="text-input small-input" type="" id="password" name="password" value="<?=$model->password?>" />
<label></label>
<input class="text-input small-input" type="" id="realname" name="realname" value="<?=$model->realname?>" />
<label></label>
<input class="text-input small-input" type="" id="email" name="email" value="<?=$model->email?>" />
<label></label>
<input class="text-input small-input" type="" id="mobile" name="mobile" value="<?=$model->mobile?>" />
<label></label>
<input class="text-input small-input" type="" id="oicq" name="oicq" value="<?=$model->oicq?>" />
<label></label>
<input class="text-input small-input" type="" id="groupid" name="groupid" value="<?=$model->groupid?>" />
<label>创建时间</label>
<input class="text-input small-input" type="text" id="createtime" name="createtime" value="<?=$model->createtime?>" />
																									
								</p>
								<div class="clear"></div>
								<input  type="submit"  value="提交"/> <input type="reset"  value="重置" />	
							</fieldset>
						</form>
					</div> 
					
				</div>
</div> 
</div>

</body>  
</html>
